import request from './request';

// 获取文件列表
export const getFileList = (query: any) => {
  return request({
    url: '/file/list',
    method: 'get',
    params: query,
  });
};
// 上传文件
export function uploadFile(data: FormData) {
  return request({
    url: '/file/upload',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data',
    },
  });
}
